<script setup lang="ts">
import type { Row } from '@/types/home'
defineOptions({
  name: 'article-list'
})

const props = withDefaults(
  defineProps<{
    list: Row[] | any[]
    loading: boolean
    finished: boolean
  }>(),
  {
    list: () => [],
    loading: false,
    finished: false
  }
)
</script>

<template>
  <van-list
    :loading="loading"
    @update:loading="$emit('update:loading', !loading)"
    :finished="finished"
    finished-text="没有更多了"
    @load="$emit('load')"
  >
    <div>123</div>
  </van-list>
</template>
